package logic

import (
	"context"
	"fmt"
	"go-ms-scaffold/server/service/hello/pb/hello"
)

type HelloService struct{}

func NewHelloService() *HelloService {
	return &HelloService{}
}
func (_this *HelloService) SayHello(ctx context.Context, in *hello.HelloRequest) (*hello.HelloResponse, error) {
	response := new(hello.HelloResponse)
	response.Message = fmt.Sprintf("Hello %s.", in.Name)
	return response, nil
}
